package com.hellogood.yaohuo.server.mgr;

import java.util.List;

import com.hellogood.yaohuo.server.dao.factory.DAOFactory;
import com.hellogood.yaohuo.shared.entity.Vendor;

public class VendorMgr {
	public List<Vendor> getVendorList() {
		return DAOFactory.getInstance().createVendorDAO().getVendorWithNotCList();
	}

	public Vendor getVendorByCode(String code) {
		return DAOFactory.getInstance().createVendorDAO().getVendorByCode(code);
	}

	public List<Vendor> searchVendorByText(String text) {
		return DAOFactory.getInstance().createVendorDAO().searchVendorByText(text);
	}
}
